/*
 * Project Name spring-boot-tools
 * File Name Length
 * Package Name com.huxiaosu.tools.cmpp
 * Create Time 2024/4/20
 * Create by name：liujie
 */
package com.huxiaosu.tools.cmpp.utils;

/**
 * 定义消息体 字段字节长度
 * <li>1 和 4可以不定义 ；直接使用 get getInt</li>
 *
 * @author liujie
 * @date 2024/4/20 14:16
 */
public class Length {

    public final static int HEADER = 12;

    public final static int STATUS = 4;

    public final static int VERSION = 1;

    public final static int TIMESTAMP = 4;

    public interface Connect {

        int SOURCE_ADDR = 6;

        int AUTHENTICATOR_SOURCE = 16;

    }

    public interface ConnectResp {

        int AUTHENTICATOR_ISMG = 16;

    }

    public interface Submit {

        int MSG_ID = 8;

        int PK_TOTAL = 1;

        int PK_NUMBER = 1;

        int REGISTERED_DELIVERY = 1;

        int MSG_LEVEL = 1;

        int SERVICE_ID = 10;

        int FEE_USER_TYPE = 1;

        int FEE_TERMINAL_ID = 32;

        int FEE_TERMINAL_TYPE = 1;

        int TP_PID = 1;

        int TP_UDHI = 1;

        int MSG_FMT = 1;

        int MSG_SRC = 6;

        int FEE_TYPE = 2;

        int FEE_CODE = 6;

        int VALID_TIME = 17;

        int AT_TIME = 17;

        int SRC_ID = 21;

        int DEST_USR_TL = 1;

        int DEST_TERMINAL_ID = 32 ;

        int DEST_TERMINAL_TYPE = 1;

        int MSG_LENGTH = 1;

        String MSG_CONTET = "msgLength的值";

        int LINK_ID = 20;

    }

    public interface SubmitResp {

        int MSG_ID = 8;

        int RESULT = 4;

    }

}
